package com.huishu.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huishu.coupon.pojo.dto.CouponPageDTO;
import com.huishu.coupon.pojo.model.CouponDO;
import com.huishu.coupon.pojo.vo.CouponPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author generator@ljj
 * @since 2023-04-10
 */
public interface CouponMapper extends BaseMapper<CouponDO> {


    /**
     * 分页查询
     * @param page
     * @param couponPageDTO
     * @return
     */
    IPage<CouponPageVO> pageList(Page<CouponPageVO> page, @Param("params") CouponPageDTO couponPageDTO);
}
